/*
 * analyzer.h
 *
 *  Created on: 2012-11-29
 *      Author: silvtar
 */

#ifndef ANALYZER_H_
#define ANALYZER_H_

#include "FileTree.h"
#include <queue>

class SSAnalyzer {
private:
	SSTree firTree;
	SSTree secTree;

	std::queue<SSTreeNode> firQueue;
	std::queue<SSTreeNode> secQueue;

	int analyze(SSTreeNode &currentFirNode, SSTreeNode &currentSecNode);	//分析的递归调用，供本类调用

public:
	SSAnalyzer();
	SSAnalyzer(std::string firPath, std::string secPath);
	virtual ~SSAnalyzer();

	int analyze();	//开始分析，供其他函数调用


	void print();		//输出队列中的内容，会清空队列
	int syncNet();	//网络同步
	int syncLocal();	//本地同步
};

#endif /* ANALYZER_H_ */
